<template>
  <Card class="count-sales">
    <div class="card">
      <div class="card__header">
        <span class="label">总销售额</span>
        <span class="value">￥<count-to :end="15920" :decimals="2"></count-to></span>
      </div>

      <div class="card__container">
        <ul class="count-sales__cop">
          <li>
            <span>周同比</span>

            <div class="fall">
              <Icon type="md-trending-down"/>
              <span>-4%</span>
            </div>
          </li>

          <li>
            <span>日同比</span>

            <div class="rise">
              <Icon type="md-trending-up"/>
              <span>+7%</span>
            </div>
          </li>
        </ul>
      </div>

      <div class="card__footer">
        <span class="label">日销售额</span>
        <span class="value">￥<count-to :end="1298.01" :decimals="2"></count-to></span>
      </div>
    </div>
  </Card>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
  .count-sales {
    &__cop {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 50px;

      li {
        display: flex;
        list-style: none;
        flex: 1;
        color: #d8d8d8;

        .fall,
        .rise {
          display: flex;
          align-items: center;
          margin-left: 10px;
        }

        .fall {
          color: #13ae7c;
        }

        .rise {
          color: #f21e37;
        }
      }
    }

    .card__footer {
      .value {
        display: flex;
        align-items: center;
      }
    }
  }
</style>
